#ifndef _BUFF_H_
#define _BUFF_H_


class Buff
{
private:
    /* data */

public:
    Buff(uint8_t * Data,uint32_t Size):data(Data),size(Size){};
    Buff():data(nullptr),size(0){};
    ~Buff(){};
    uint8_t * data ;
    uint32_t size ;
    bool mark;
    bool empty(){
        if(size==0)
        {
            return true ;
        }
        return false ;
    }
    void clear(){
        if(data!=nullptr)
        {
            free(data);
            data=nullptr;
            size =0 ;
        }
    }
};

#endif 